package com.bookstore.spring.service;


import com.bookstore.spring.pojo.Book;
import com.bookstore.spring.pojo.ShoppingCart;
import com.bookstore.spring.web.CriteriaBook;
import com.bookstore.spring.web.Page;

/**
 * Created by Admin on 9/16 0016.
 */
public interface BookService {
    Page<Book> getPage(CriteriaBook cb) ;
    Book getBook(int id) ;
    /**
     * 根据商品的id 和购物车
     *
     * @param id
     * @param sc
     */
    boolean addToCart(int id, ShoppingCart sc) ;
    long getCountWithName(String title) ;
}
